import request from '@/utils/request'

// 查询洗车订单列表
export function listCarWashOrder(query) {
    return request({
        url: '/orderManagement/carWashOrder/list',
        method: 'get',
        params: query
    })
}

// 查询洗车订单详细
export function getCarWashOrder(orderId) {
    return request({
        url: '/orderManagement/carWashOrder/' + orderId,
        method: 'get'
    })
}

// 新增洗车订单
export function addCarWashOrder(data) {
    return request({
        url: '/orderManagement/carWashOrder',
        method: 'post',
        data: data
    })
}

// 修改洗车订单
export function updateCarWashOrder(data) {
    return request({
        url: '/orderManagement/carWashOrder',
        method: 'put',
        data: data
    })
}

// 删除洗车订单
export function delCarWashOrder(orderId) {
    return request({
        url: '/orderManagement/carWashOrder/' + orderId,
        method: 'delete'
    })
}
